<template>
    <a class="dashboard-stat dashboard-stat-v2 blue" href="#">
        <div class="visual">
            <i class="fa fa-group"></i>
        </div>
        <div class="details">
            <div class="number">
                <span> {{ passportCount.CountToday }} 人</span>
            </div>
            <div class="desc"> 
                已注册通行证总数: {{ passportCount.CountAll }} 人 
            </div>
        </div>
    </a>
</template>

<script>
export default {
    data() {
        return {
            passportCount: {
                CountToday: 0,
                CountAll: 0
            }
        }
    },
    mounted() {
        this.$DashboardService.QueryPassportCount()
            .then(ret => {
                this.passportCount = ret;
            })
    }
}
</script>

<style>

</style>
